package com.chapter14.demo3;

public class Emp {
    private Integer no;
    private String name;
    private Integer age;
    private String job;
    private Integer salary;
    private Integer bonus;

    private String dept;

    public Emp(Integer no, String name, Integer age, String job, Integer salary, Integer bonus, String dept) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.job = job;
        this.salary = salary;
        this.bonus = bonus;
        this.dept = dept;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public Integer getBonus() {
        return bonus;
    }

    public void setBonus(Integer bonus) {
        this.bonus = bonus;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return name ;
    }

    
}
